home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / disk-tools / harddisk / noise-saver / hdoff.doc < prev    next >
PGP Signed Message  |  1996-02-26  |  7KB  |  188 lines

  1. -----BEGIN PGP SIGNED MESSAGE-----
  2.  
  3.  
  4. NAME
  5.         HDOff -- a program for the A600/A1200 and A4000 to stop the HD
  6.         motor.
  7.  
  8. SYNOPSIS
  9.         HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S
  10.         SET1200/S,SET4000/S
  11.  
  12. DESCRIPTION
  13.         HDOff  is  a program like NoiseSaver for the A1200 and A4000.  It
  14.         stops the HD motor x minutes after the last access.
  15.  
  16.         TIME, TIME2 : Time for the 1st and 2nd HD
  17.  
  18.         FORCE : Forces  HDOff to quit.  Normaly HDOff wouldn`t quit if an
  19.                 other   programm   (like   cachesoft   etc)  patched  the
  20.                 scsi.device   after   HDOff.    But   if  you  are  using
  21.                 SetFuncManager   (or  something  like  this),  HDOff  can
  22.                 nevertheless  quit  without danger.  ONLY USE THIS OPTION
  23.                 IF YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE IT!
  24.  
  25.         OTHER, OTHER2 :
  26.                 This  option  makes  HDOff  to  use  an other command ($94
  27.                 instead  of  $E0)  to  stop the HD motor.  If also your HD
  28.                 won`t spin down, use this option.  Some drives, especially
  29.                 old  ones,  don`t  support  the spindowncommand (all newer
  30.                 drives should support it).
  31.  
  32.         NOW, NOW2 :
  33.                 The  selected  HD  spins  immediately down, after this the
  34.                 program runs normal (usefull for seldom-used HD`s).
  35.  
  36.         SET1200, SET4000:
  37.                 With  some  odd  HD`s,  HDOff  wasn`t  able to detect wich
  38.                 controller  is  present  in the Amiga.  If you start HDOff
  39.                 and  get  a  "Incorrect  HD  controller!"  but  are  using
  40.                 A600/A1200/A4000, use the option SET1200 for an A600/A1200
  41.                 or SET4000 for an A4000.
  42.  
  43. NOTE
  44.         Don`t  adjust the "time" value too low (maximum are 65535 minutes
  45.         :) ! Your HD will thank you! (60 mins is a good value to choose).
  46.  
  47.         You don`t need to start HDOff with run.
  48.  
  49.         To quit simply restart HDOff.
  50.  
  51.         If  a  requester  with  the  message  "Someone  else  has patched
  52.         scsi.device!..."  pops  up, someone else (f.e.  caching software)
  53.         has  latched  into  the  scsi.device.  For security reasons HDOff
  54.         cannot be terminated.
  55.  
  56.         This  program  is  100% written in assembler (DevPac 3.14) and (as
  57.         far as its possible) systemconform.
  58.  
  59. EXAMPLES
  60.         1. HDOff 30
  61.         Stops the motor of the 1st HD 30 minutes after the last access.
  62.  
  63.         2. HDOff 30 15 OTHER2
  64.         Stops the motor of the 1st HD 30 minutes, the motor of the 2nd HD
  65.         15  minutes  after  the  last  access.   For the 2nd HD the other
  66.         command will be used to stop the motor
  67.  
  68.         3. HDOff T2=20
  69.         Stops the motor of the 2nd HD 30 minutes after the last access.
  70.  
  71.         4. HDOff 30 15 NOW2
  72.         Stops  the motor of the 1st HD 30 minutes, the motor of the 2nd HD
  73.         directly.   If  (by  an access) the 2nd HD spins up, the next spin
  74.         down is again in 15 mins.
  75.  
  76. TECHNICAL
  77.         How does it work? The essential things are:
  78.  
  79.         1. Test if ide controller is present (if not: quit)
  80.  
  81.         2.   Patching of the scsi.device (of cause with SetFunction).  The
  82.         patch signals HD accesses to the MainTask.
  83.  
  84.         3.   Count  the  timeloop down and reinit it if an signal from the
  85.         patch occures.
  86.  
  87.         4.  If timecounter 0:  Signal the patch to delay all commands (for
  88.         both  drives) till the signal is "retract".  Security delay 1 sek.
  89.         Forbid(),   Wait_IDE_unbusy,   select  the  drive  (master/slave),
  90.         Wait_IDE_unbusy,  spin  down HD, Permit.  "Retract" the signal for
  91.         the patch for the HD that was not stopped, for the other one after
  92.         5 seks security delay (spin up is done by the HD itself).
  93.  
  94.     5. Check, if there is any message and process it.
  95.  
  96.         6.  Repeat step 3-4 till abort.
  97.  
  98.         For  more information about the messageport have a look in
  99.         Developers.doc!
  100.  
  101. DISCLAIMER
  102.         This  prg  is  a  hack!  It was only programmed for the A1200, A600
  103.         and A4000  with IDE HD`s!  Use it at your own risk!
  104.  
  105. COPYRIGHT
  106.         This  prg  is Freeware.  You may copy it, but you must not change
  107.         anything!  No commercial using without my permission!
  108.  
  109. AUTHOR
  110.         Gideon Zenz
  111.         Giersbergstr. 41
  112.         53229 Bonn
  113.         GERMANY
  114.  
  115.         EMail: gzenz@ernie.mi.uni-koeln.de
  116.                Marvin@BigBen.dssd.sub.org (only within Germany)
  117.                (^^ NOTE! CHANGED!)
  118.  
  119.         News about HDOff at: http://ernie.mi.uni-koeln.de/~gzenz/hdoff.html
  120.  
  121.         -Gideon Zenz, 7-Jan-96
  122.  
  123. BUGS
  124.         Non known.
  125.  
  126. HISTORY
  127.         v1.0: (08-Mai-94)
  128.          - Initial release
  129.  
  130.         v1.1: (30-Jan-95)
  131.          - Timerloop in minutes and much more precisely
  132.          - No need to start with run any more
  133.          - At all more secure and more systemconform
  134.          - A4000 support
  135.  
  136.         v1.2: (20-Apr-95)
  137.          - docs completely rewritten
  138.          - Support of 2nd HD`s
  139.          - New args OTHER and OTHER2 and NOW and NOW2
  140.  
  141.     v1.33: (7-Jan-96)
  142.          - HDOff crashed if started on heavy diskaccess.
  143.          - new options SET1200 and SET4000
  144.          - Implementation of the onlineport. Have a look in 
  145.            Developers.doc for usage.
  146.  
  147. THANKS
  148.         Many       thanks      to      heureka@bigben.dssd.sub.org    and
  149.         M.ZIELINSKI@amtrash.comlink.de  for their helps on A4000 & 2nd HD
  150.         Support!
  151.  
  152. SECURITY
  153.         If  you  want  to be shure you have the original programms, check
  154.         with  "md5sum  -c  HDOff.doc".   (You  get  md5sum f.e.  from the
  155.         PGP-archive)
  156.  
  157. 482db34306a704eb8f85a43f81e7f5ca *HDOff
  158. 0e5b3f361c0cc601564c83bcb63650d1  Developers.doc
  159.  
  160. - -----BEGIN PGP PUBLIC KEY BLOCK-----
  161. Version: 2.6.2i
  162.  
  163. mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
  164. ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
  165. ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
  166. tChHaWRlb24gWmVueiA8TWFydmluQEJpZ0Jlbi5kc3NkLnN1Yi5vcmc+iQCVAwUQ
  167. MKAFYEBgnhXGkfElAQHfNgQApPTXMFip0cg2goWRCy/0v6EeVyDCnFiHu0WKk7ge
  168. HkHz2S1esiF87KedcNPmWhn75ZknXaGFzWkX/Qnxdh5Pk3AyTdzDURnu1WBN2lnL
  169. huXbmCK08j3rBtvLq0rZg2L8Dvpf/rjTSB86UXf47MgR+Wow5vltwvL1NEI1GACY
  170. Bpm0JkdpZGVvbiBaZW56IDxNYXJ2aW5AQklHQkVOLnd3Yi5zdWIuZGU+iQCVAgUQ
  171. Lunxnys4JdI2NDr5AQFsNQQAjjpOR+crQZY8RXviWGuJ6K806bh9mCIOYXmfmaJl
  172. i2aEI2qpbLaN+K394usK0cynleGVFCkOfAa+J3PQTIOPSTB+8p2mcAN2JuZWR85e
  173. UE6JKyRU96D8c36CNgKxytelDuD4JAwA6gG/CiqiECr59gnaaGwrkpL6h+iMBQcY
  174. bwy0Mk5PVEU6IE1hcnZpbkBCSUdCRU4ud3diLnN1Yi5kZSBub3QgdmFsaWQgYW55
  175. IG1vcmUhtBVHaWRlb24gWmVueiAyOjI0NDAvOTk=
  176. =NZ+T
  177. - -----END PGP PUBLIC KEY BLOCK-----
  178.  
  179. -----BEGIN PGP SIGNATURE-----
  180. Version: 2.6.2i
  181.  
  182. iQCVAwUBMPAUIUBgnhXGkfElAQGBbwQAnUZnBIt29hvRYmEOc3+Klq3bwLDO7EJl
  183. n/vT5jVAEK+MSCrNhWDsw9K1X6LVEiDNg1pnZRjyimP99yfUCHxduWHdUXrOg29+
  184. a2VtBHc92O5IuYdDs8JQpw2TAg5fln8CJDu/Raycox2JnPcZXWBT/gwIoqWKLb/9
  185. lzPqXURVIe4=
  186. =l+5P
  187. -----END PGP SIGNATURE-----
  188.